package com.yunji.aggregate.model.dto.stock;

import com.yunji.common.base.SqlConcatParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.util.List;


/**
 * @Project: yunji-coffee
 * @Package: com.yunji.storage.params
 * @Title: AllocateTikcetParam
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-21 15:01:57      V1.0        HuaAo       新建类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AllocateTicketParam extends SqlConcatParam {

    @ApiModelProperty("页码")
    private Integer pageNum;

    @ApiModelProperty("数量")
    private Integer pageSize;

    @ApiModelProperty("单据ID")
    private Long allocateId;

    @ApiModelProperty("单据单号")
    @Length(message = "单据编号不能超过{}个字符", max = 20)
    private String allocateCode;

    @ApiModelProperty("所属单位")
    private Long belongId;

    @ApiModelProperty("用户所属ID")
    private Long userBelongId;

    @ApiModelProperty("草稿所属ID")
    private Long draftBelongId;

    @ApiModelProperty("父级所属ID")
    private Long parentId;

    @ApiModelProperty("所属单位Ids")
    private List<Long> belongIds;

    @ApiModelProperty("调拨状态 0-草稿 1-待出库 2-待收货 3-已完成 4-已取消 5-作废")
    private Integer allocateStatus;

    @ApiModelProperty("开始时间")
    private String startTime;

    @ApiModelProperty("结束时间")
    private String closeTime;

}